<template>
  <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
    <van-swipe-item v-for="item in banners" :key="item">
      <img v-lazy="item" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["banners"],
};
</script>

<style lang="less" scoped>
.my-swipe .van-swipe-item img {
  width: 100%;
  height: 375px;
}
</style>

